#define _CRT_SECURE_NO_WARNINGS

//最小的k个数

class Solution {
public:
    vector<int> getLeastNumbers(vector<int>& arr, int k) {
        sort(arr.begin(),arr.end());
        vector<int> ret(k,0);
        for(int i=0;i<k;i++)
        {
            ret[i]=arr[i];
        }
        return ret;
    }
};